package com.yami.shop.common;



public class ConstantsDefinition {
	public final static String CHN_VAR_USER_NO = "AppUserNo";
	/**
	 * FORMAT DOMAIN NAME
	 */
	public final static String CHN_VAR_FORMAT_DOMAIN_NAME = "SysFormatDomainName";
	/**
	 * UNFORMAT DOMAIN NAME
	 */
	public final static String CHN_VAR_UNFORMAT_DOMAIN_NAME = "SysUnformatDomainName";
	/**
	 * 渠道系统内部交易码
	 */
	public final static String CHN_VAR_TRANSCODE = "SysTransCode";
	/**
	 * CP分配给银商账户系统的KEY文件的存放地址
	 */
	public final static String CHN_VALUE_MRCH_KEY_PATH = "SysMrchKeyPath";
	/**
	 * CP的公钥文件存放地址
	 */
	public final static String CHN_VALUE_CP_KEY_PATH = "SysCPKeyPath";
	/**
	 * CP分配给银商账户系统的商户号
	 */
	public final static String CHN_VALUE_MRCH_ID = "SysMrchNo";
	/**
	 * 加密版本
	 */
	public final static String CHN_VALUE_VERSION = "SysVersion";
	/**
	 * 渠道接入系统请求码
	 */
	public final static String CHN_VAR_REQ_TRANSCODE = "SysOutTransCode";
	/**
	 * 主机系统交易码
	 */
	public final static String CHN_VAR_HOST_TRANSCODE="SysHostTransCode";
	/**
	 * 主机系统响应码
	 */
	public final static String CHN_VAR_HOST_RETCODE = "SysHostRetCode";
	/**
	 * 主机系统响应信息
	 */
	public final static String CHN_VAR_HOST_RETMSG = "SysHostRetMsg";
	/**
	 * 接入系统返回码
	 */
	public final static String CHN_VAR_REQ_RETCODE = "SysReqRetCode";
	/**
	 * 接入系统返回信息
	 */
	public final static String CHN_VAR_REQ_RETMSG = "SysRetMsg";
	/**
	 * 系统错误码
	 */
	public final static String CHN_VAR_ERRCODE = "SysErrCode";
	/**
	 * 渠道号
	 */
	public final static String CHN_VAR_CHANNEL_NO = "SysChannelNo";
	/**
	 * 系统裸数据
	 */
	public final static String CHN_VAR_RAWDATA = "SysRawData";
	/**
	 * 原始数据
	 */
	public final static String CHN_VAR_ORIGINAL_DATA = "SysOriginalData";
	/**
	 * 加密数据
	 */
	public final static String CHN_VAR_ENC_DATA = "SysEncrptData";
	/**
	 * MAC
	 */
	public final static String CHN_VAR_MAC = "SysMac";
	/**
	 * MAK
	 */
	public final static String CHN_VAR_MAK = "SysMak";
	/**
	 * 签名
	 */
	public final static String CHN_VAR_SIGN = "SysChkValue";
	/**
	 * 签名标志
	 */
	public final static String CHN_VAR_SIGN_FLAG = "SysSignFlag";
	/**
	 * 网关号
	 */
	public final static String CHN_VAR_GATEWAY = "SysGateId";
	/**
	 * 区域主密钥索引
	 */
	public final static String CHN_VAR_ZONE_KEY_INDEX = "SysZoneKeyIndex";
	/**
	 * 公钥
	 */
	public final static String CHN_VAR_PUB_KEY = "AppPubKey";

	/**
	 * 私钥
	 */
	public final static String CHN_VAR_PRI_KEY = "AppPriKey";

	/**
	 * 渠道密钥类型
	 */
	public final static String CHN_VAR_SRC_KEY_TYPE = "SysSrcKeyType";
	/**
	 * 系统成功码
	 */
	public final static String CHN_VALUE_ERRCODE_SUCCESS = "99999999";
	/**
	 * 系统通用错误码
	 */
	public final static String CHN_VALUE_ERRCODE_FAIL = "11111111";

	/**
	 * CACHE中无此实体
	 */
	public final static String ERRCODE_CACHE_NOENTITY = "10000001";

	/**
	 * 打包失败
	 */
	public final static String ERRCODE_PACK_FAIL = "00210010";

	/**
	 * 解包失败
	 */
	public final static String ERRCODE_UNPACK_FAIL = "00210011";

	/**
	 * 通信发送失败
	 */
	public final static String ERRCODE_MESSAGE_SEND_FAIL = "00210002";

	/**
	 * 接收数据失败
	 */
	public final static String ERRCODE_MESSAGE_RECEIVE_FAIL = "00210003";

	/**
	 * 流水状态：成功
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_SUCCESS = "0";
	/**
	 * 流水状态：接收请求
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_REQRECV = "1";
	/**
	 * 流水状态：发送主机成功
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_SENDHOSTSUCESS = "2";
	/**
	 * 流水状态：发送主机失败
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_SENDHOSTFAIL = "3";
	/**
	 * 流水状态：接收主机成功
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_RECVHOSTSUCCESS = "4";
	/**
	 * 流水状态：接收主机失败
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_RECVHOSTFAIL = "5";
	/**
	 * 流水状态：系统内部异常
	 */
	public final static String CHN_VALUE_JOURNAL_STATUS_EXCEPTION = "6";

	public final static String CHN_ACCESS_SYSTEM = "SysAccessSystem";

	/**
	 * 2018-1-17<br/>
	 * 打包解包时需要的实体<br/>
	 * 请求系统的请求数据
	 */
	public final static String CHN_VAR_FORMAT_ENTITY_KEY = "SysFormatEntityKey";
	public final static String CHN_VAR_UNFORMAT_ENTITY_KEY = "SysUnformatEntityKey";
	public final static String CHN_VAR_REQUEST_MSG = "SysRequestMsg";


//
//	public final static String CHN_SYS_ID;
//
//	public final static String CHN_SYS_TYPE;
//
//	static{
//
//		String acc_env = System.getenv("acc.env");
//
//		if(acc_env==null)
//			acc_env = System.getProperty("acc.env");
//
//
//
//		Properties pros = PropertiesFileHandler.getProperties("/baseConfig/ConstantsDefine."+acc_env+".properties");
//		CHN_SYS_ID = pros.getProperty("CHN_SYS_ID");
//		CHN_SYS_TYPE = pros.getProperty("CHN_SYS_TYPE");
//	}

}
